package com.baosight.risk.service.riwa.impl;

import com.baosight.risk.api.riwa.RiwaEhrContractService;
import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.mapper.riwa.RiwaEhrContractMapper;
import com.baosight.risk.service.riwa.entity.RiwaEhrContract;
import com.baosight.risk.service.zbaa.entity.ZbaaTargetValue;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liuhaonan
 * @date 2020年 05月06日 11:01:09
 * @describe
 */
@Service
@Slf4j
public class RiwaEhrContractServiceImpl implements RiwaEhrContractService {
    @Autowired
    RiwaEhrContractMapper riwaEhrContractMapper;

    @Override
    public Integer insertValueList(List<RiwaEhrContract> list) {
        for (RiwaEhrContract zbaaTargetValue : list) {
            int insert = riwaEhrContractMapper.insert(zbaaTargetValue);
            if (insert < 1) {
                return -1;
            }
        }
        return 1;
    }

    @Override
    public List<RiwaEhrContract> getEhrContractList(RiwaEhrContract task) {
        return riwaEhrContractMapper.getEhrContractList(task);
    }

    @Override
    public BaseMapper getMapper() {
        return null;
    }

    @Override
    public List<RiwaEhrContract> select(RiwaEhrContract riwaEhrContract) {
        return null;
    }

    @Override
    public RiwaEhrContract get(String id) {
        return null;
    }

    @Override
    public List<RiwaEhrContract> selectAll() {
        return null;
    }

    @Override
    public Integer insert(RiwaEhrContract riwaEhrContract) {
        return null;
    }

    @Override
    public Integer update(RiwaEhrContract riwaEhrContract) {
        return null;
    }

    @Override
    public Integer delete(String id) {
        return null;
    }
}
